<?php
/**
 * Created by PhpStorm.
 * User: william
 * Date: 2017/6/21
 * Time: 10:40
 */
namespace Biz\Region;
class Region extends \Base\BaseBiz{

    /*
     *  获取区域信息
     *  @param $id
     */
    public function getById($id)
    {
        $region_orm = new \Orm\Region\RegionList();
        $where = sprintf('Parentid=%d',$id);
        $region_orm['where'] = $where;
        $region_orm['limit'] = 99;
        $region_orm->load();
        if ($region_orm['is_success']) {
            return $region_orm['lists'];
        } else {
            return false;
        }
    }
}